/*    */ package org.poebot.hal;
/*    */ 
/*    */ import java.awt.event.ActionEvent;
/*    */ import java.awt.event.ActionListener;
/*    */ import javax.swing.BoxLayout;
/*    */ import javax.swing.ButtonGroup;
/*    */ import javax.swing.JPanel;
/*    */ import javax.swing.JRadioButton;
/*    */ import javax.swing.border.TitledBorder;
/*    */ 
/*    */ public class TrainingFileAccessory extends JPanel
/*    */   implements ActionListener
/*    */ {
/*    */   private static final long serialVersionUID = 5251374066297858760L;
/* 45 */   private JRadioButton lineParseButton = null;
/* 46 */   private JRadioButton textParseButton = null;
/*    */ 
/*    */   public TrainingFileAccessory()
/*    */   {
/* 19 */     this.lineParseButton = new JRadioButton("Parse text one line at a time (log files, etc.)");
/* 20 */     this.lineParseButton.setSelected(true);
/* 21 */     this.textParseButton = new JRadioButton("Parse text by sentence (quotes, books, etc.)");
/* 22 */     this.textParseButton.setSelected(false);
/*    */ 
/* 24 */     ButtonGroup group = new ButtonGroup();
/* 25 */     group.add(this.lineParseButton);
/* 26 */     group.add(this.textParseButton);
/*    */ 
/* 28 */     setLayout(new BoxLayout(this, 2));
/* 29 */     add(this.lineParseButton);
/* 30 */     add(this.textParseButton);
/* 31 */     setBorder(new TitledBorder("Parsing Method"));
/*    */   }
/*    */ 
/*    */   public void actionPerformed(ActionEvent arg0)
/*    */   {
/*    */   }
/*    */ 
/*    */   public boolean isLineParsingSelected()
/*    */   {
/* 42 */     return this.lineParseButton.isSelected();
/*    */   }
/*    */ }

/* Location:           C:\workspace\dognuts\dognuts\dognuts.jar
 * Qualified Name:     org.dognuts.gui.TrainingFileAccessory
 * JD-Core Version:    0.6.0
 */